package creationalPattern.builder;

public class WomenBuilder implements PersonBuilder{
    Person person;

    public WomenBuilder() {
        this.person = new Women();
    }

    @Override
    public void buildHead() {
        person.setHead("创建女人的头");
    }

    @Override
    public void buildBody() {
        person.setBody("创建女人的身体");
    }

    @Override
    public void buildFoot() {
        person.setFoot("创建女人的脚");
    }

    @Override
    public Person buildPerson() {
        return person;
    }
}
